function setMailListStyle(){
	var thead = document.getElementById("mainThead");
	var bodyh = document.body.clientHeight;
	var bodyw = document.body.clientWidth;
	var SrcollDiv = document.getElementById("mainSrcollDiv");
	var buttonCov = document.getElementById("buttonCov").offsetHeight;
	var conListAlt = document.getElementById("conListAlt").offsetHeight;
	var pageCov;
	if(! document.getElementById("pageCov")){
		pageCov=0;
		}
	else{pageCov = document.getElementById("pageCov").offsetHeight;}
	SrcollDiv.style.height = bodyh-buttonCov-conListAlt-pageCov+"px";
	SrcollDiv.style.width = bodyw+"px";
	thead.style.width = document.getElementById('bodyBlockTitle').offsetWidth+"px";
	//alert(document.getElementById('bodyTitle').offsetWidth+"px"+"------"+theadWidth);
	for(i=0;i<thead.rows[0].cells.length;i++){
		thead.rows[0].cells[i].className = 'thCenter';
		}
	thead.rows[0].cells[0].className = 'thLeft';
	
	var alltable = document.getElementsByTagName('table');
	//alert(alltable.length);
	for(i=0;i<alltable.length;i++){
	//alert(alltable[i].id);
		for(j=0;j<alltable.length;j++){
			if(alltable[i].id == "body_"+j){
				var tbody = document.getElementById("body_"+j);
				for(k=0;k<tbody.rows[0].cells.length;k++){
					tbody.rows[0].cells[k].style.width = thead.rows[0].cells[k].offsetWidth;
					}
				}
			}
		}
	thead.style.width = document.getElementById('bodyBlockTitle').offsetWidth+"px";
	}

function openTable(tbodyObj,Obj){
	var tbodysc = document.getElementById(tbodyObj);
	var thead = document.getElementById("mainThead");
	//alert(Obj.innerHTML);
	
	if(tbodysc.style.display == 'none'){
		//alert(tbodysc.childNodes[0].tagName)
		tbodysc.style.display = 'block';
		Obj.className = 'mailTbodyNone';
		for(i=0;i<tbodysc.rows[0].cells.length;i++){
			tbodysc.rows[0].cells[i].style.width = thead.rows[0].cells[i].offsetWidth;
			}
		}
	else{
		tbodysc.style.display = 'none';
		Obj.className = 'mailTbodyBlock';
		}
	document.getElementById('bodyBlockTitle').style.width = '100%';
	thead.style.width = document.getElementById('bodyBlockTitle').offsetWidth;
	setMailListStyle();
	//thead.style.width = tbodysc.offsetWidth;
}